/*
 * ParserException.cpp
 *
 *  Created on: 2010-5-1
 *      Author: Guobc
 */

#include "ParserException.h"
#include <sstream>
namespace HA {

ParserException::ParserException(string fuction, int line, string className) :
	errMsg("") {
	stringstream ss;
	ss<<line;
	errMsg = "Exception in " + '\"' + fuction + '\"' + " ParserException: "
			+ ss.str() + " at " + className + " class";
}

const char* ParserException::what() const throw () {
	cout << errMsg;
	return errMsg.c_str();
}

ParserException::~ParserException() throw () {
}
}
